// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
// import iView from 'iview'
import ViewUI from 'view-design'
// import 'iview/dist/styles/iview.css' // 使用 CSS
import 'view-design/dist/styles/iview.css'

// /components/ECharts.vue
import ECharts from 'vue-echarts'
import $server from '@/server'
import common from '@/assets/js/common/common'

import 'echarts/lib/chart/bar'
import 'echarts/lib/chart/line'
import 'echarts/lib/chart/pie'
import 'echarts/lib/component/tooltip'
import 'echarts/lib/component/legend'
import 'echarts/lib/component/markPoint'
import 'echarts/lib/component/markLine'
import 'echarts/lib/component/graphic'

Vue.use(ViewUI)
Vue.use(ECharts)
// 注册组件后即可使用
Vue.component('v-chart', ECharts)

Vue.prototype.viewCommon = common
Vue.config.productionTip = false

Vue.prototype.$server = $server
/* eslint-disable no-new */
new Vue({
  // el: '#app',
  router,
  components: { App },
  template: '<App/>'
}).$mount('#app')
